<?php
// +----------------------------------------------------------------------
// | quanli team
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.fistforward.com/ All rights reserved.
// +----------------------------------------------------------------------
// | Author: create by allen.qiang
// +----------------------------------------------------------------------

/**
 * 会员反馈功能
 * @package  htdocs
 * @subpackage  quanliadmin
 * @author   create by allen.qiang
 */

quanli_require('module/base/customer/customerManage.class.php');
quanli_require('module/base/customer/quanliCust.class.php');

class pa_custComment{

    public function execute(){

        if(isset($_REQUEST['operFlg']) && quanli_is_int($_REQUEST['operFlg'])){

            $operFlg = $_REQUEST['operFlg'];

            switch( $operFlg ){

                case 1: //反馈列表页面
                    $this->custCommentList();
                    break;

                default:
                    backendError();
                    break;
            }

        }else {
            backendError();
        }

    }

    /**
     * 反馈列表页面
     */
    private function custCommentList(){

        global $G_SHOP;

        $G_SHOP->smarty->assign('edit_permission', $G_SHOP->has_permission(3016));

        $G_SHOP->smarty->display('customer/custCommentList.tpl');

    }

}
